package com.chrray.position.entity.position.base;

import com.chrray.position.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 系统权限菜单表
 *
 * @author lm
 **/
@Entity
@Data
@ApiModel(value = "系统权限菜单表", description = "系统权限菜单表")
public class SysMenuBaseEntity extends BaseEntity {
    /**
     * 主键
     */
    @Id
    @NotNull(message = "主键是必填项")
    @ApiModelProperty(value = "主键", required = true)
    private String id;


    @ApiModelProperty(value = "1菜单2按钮")
    private Integer menuType;

    @ApiModelProperty(value = "等级")
    private Integer level;

    @ApiModelProperty(value = "菜单/按钮名")
    private String menuName;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "排序号")
    private Integer orderNo;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "删除状态")
    private Integer deleted;

    private String menuCode;


}
